Release 10.1A: OpenEdge Development:
Progress 4GL Reference
ADD-CALC-COLUMN( ) method
Creates a browse column from the specified properties and returns the widget-handle of the new column. This method can be used only after the browse’s query attribute has been set.
Return type: WIDGET-HANDLE Applies to: BROWSE widget
datatype-expCharacter expression specifying the data type ("CHAR", “DATE”, “DECIMAL”, “INTEGER” or “LOGICAL”)
format-expCharacter expression specifying the column’s format.
initial-value-expCharacter expression specifying the initial value. This may be a null string.
label-expCharacter expression specifying the column’s label.
posThe optional integer value position of the browse column. If
pos= 2, the column is the second column. If the position is not specified or the position is invalid, the new column is added at the end of the columns.The following is an example of adding a column in the browse’s fifth position using this method:
Notes
- The ADD-CALC-COLUMN( ) method may be used on a static browse as well as on a dynamic browse.
- If the browse is already displayed, the REFRESH( ) method should be applied to the browse after columns are added using ADD-CALC-COLUMN( ). This will initially populate the viewport for the calculated column. The ROW-DISPLAY trigger would normally populate the column, but when ADD-CALC-COLUMN is being executed, the 4GL calc-column handle is not yet set and, thus, cannot initially populate it.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |